package pers.ascend.spring.cloud.dalston.service.governance.eureka.consumer.feign.manage.entity.vo;

import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.StringJoiner;

/**
 * 说明：
 *
 * @author ascend
 * 2021/3/16 16:14
 */
public class UploadFile2 implements Serializable {
    private static final long serialVersionUID = 8514895210624122867L;
    private String nickname;

    @NotNull
    private MultipartFile file;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", UploadFile2.class.getSimpleName() + "[", "]")
                .add("nickname='" + nickname + "'")
                .add("file=" + file)
                .toString();
    }
}
